﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BonjourHotel.Model;

namespace BonjourHotel.Core.Hotels
{
    public class HotelTypeFacade : FacadeBase<BonjourHotel.Model.HotelType>
    {
        public List<HotelType> GetAllTypes()
        {
            var HotelTypes = from type in base.ObjectContext.HotelTypes
                             orderby type.Description
                             select type;

            return HotelTypes.ToList();
        }
    }
}
